package com.luych.cloud.database.comparetor.core;

import java.util.List;

public interface Table {

    String getName();

    String getComment();

    List<Column> getColumns();

    List<String> getPrimaryKey();

    String getCreateVolumeSql(String tableName, Column column);

    String getModifyVolumeSql(String tableName, Column column);

    default String getRemoveVolumeSql(String tableName, String columeName) {
        return "ALTER TABLE " + tableName + " DROP COLUMN " + columeName + ";";
    }
}
